package com.miyuan.dubbo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.miyuan.dubbo.server.service.IServerService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ClientController {

    @Reference
    IServerService serverService;

    @RequestMapping("/dubbo")
    public String sayHello(){
        return serverService.sayHello("dubbo");
    }
}
